PreviousNextTracker indexSee it online !

(277/308) 1858 - Recent buffer switcher loses order when a buffer is closed

* Open several buffers
* Open recent buffer switcher. Entries are correctly sorted by most-recently used.
* Press shortcut to close a buffer (delete key for me)
* Seen: Buffers revert to alphabetical order.
* Expected: Buffers stay in most-recently used order

Submitted adam-p-s - 2016-07-06 14:06:41.021000 Assigned
Priority 5 Labels RecentBufferSwitcher
Status open Group None
Resolution None

Comments

2016-07-06 14:28:16.912000
adam-p-s

Here is a patch that fixes it for me. It's my first contribution to jEdit so sorry if I've not followed all the correct conventions.

RecentBuffer.java.patch (512B)

2016-07-15 13:36:25.355000
daleanson

Just checking, what do you have set in Utilities - Global Options - View for "Sort Buffer Switcher" and "Sort BufferSwitcher by file name instead of path name"? I'm asking because I can't seem to reproduce this issue.

2016-07-18 16:07:23.332000
adam-p-s

Thanks. Both of those settings are ticked for me. Let me know if there is anything else that would help e.g. screenshots.

2016-08-07 10:48:40.078000
adam-p-s

Hi Dale,
Perhaps I can clarify how to reproduce.
* Create files a.txt, b.txt, c.txt, d.txt, e.txt.
* Open/switch to them so that e is most recent and a oldest.
* Open recent buffer switcher. Files are correctly with e at top and a at bottom.
* STILL WITHIN recent buffer switcher, use the cursor keys to move the highlighted file down to c.txt, and press delete, which closes buffer c.txt.
* Observed: switcher shows a, b, d, e in alphabetic order.
* Expected: e, d, b, a in recent order.

Thanks,
Adam